package com.ruoyi.stuinfo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.stuinfo.mapper.AbnormalbehaviorreportMapper;
import com.ruoyi.stuinfo.domain.Abnormalbehaviorreport;
import com.ruoyi.stuinfo.service.IAbnormalbehaviorreportService;

/**
 * 异常处理Service业务层处理
 *
 * @author zc
 * @date 2025-05-14
 */
@Service
public class AbnormalbehaviorreportServiceImpl implements IAbnormalbehaviorreportService
{
    @Autowired
    private AbnormalbehaviorreportMapper abnormalbehaviorreportMapper;

    /**
     * 查询异常处理
     *
     * @param reportId 异常处理主键
     * @return 异常处理
     */
    @Override
    public Abnormalbehaviorreport selectAbnormalbehaviorreportByReportId(Long reportId)
    {
        return abnormalbehaviorreportMapper.selectAbnormalbehaviorreportByReportId(reportId);
    }

    /**
     * 查询异常处理列表
     *
     * @param abnormalbehaviorreport 异常处理
     * @return 异常处理
     */
    @Override
    public List<Abnormalbehaviorreport> selectAbnormalbehaviorreportList(Abnormalbehaviorreport abnormalbehaviorreport)
    {
        return abnormalbehaviorreportMapper.selectAbnormalbehaviorreportList(abnormalbehaviorreport);
    }

    /**
     * 新增异常处理
     *
     * @param abnormalbehaviorreport 异常处理
     * @return 结果
     */
    @Override
    public int insertAbnormalbehaviorreport(Abnormalbehaviorreport abnormalbehaviorreport)
    {
        return abnormalbehaviorreportMapper.insertAbnormalbehaviorreport(abnormalbehaviorreport);
    }

    /**
     * 修改异常处理
     *
     * @param abnormalbehaviorreport 异常处理
     * @return 结果
     */
    @Override
    public int updateAbnormalbehaviorreport(Abnormalbehaviorreport abnormalbehaviorreport)
    {
        return abnormalbehaviorreportMapper.updateAbnormalbehaviorreport(abnormalbehaviorreport);
    }

    /**
     * 批量删除异常处理
     *
     * @param reportIds 需要删除的异常处理主键
     * @return 结果
     */
    @Override
    public int deleteAbnormalbehaviorreportByReportIds(Long[] reportIds)
    {
        return abnormalbehaviorreportMapper.deleteAbnormalbehaviorreportByReportIds(reportIds);
    }

    /**
     * 删除异常处理信息
     *
     * @param reportId 异常处理主键
     * @return 结果
     */
    @Override
    public int deleteAbnormalbehaviorreportByReportId(Long reportId)
    {
        return abnormalbehaviorreportMapper.deleteAbnormalbehaviorreportByReportId(reportId);
    }

    @Override
    public List<Abnormalbehaviorreport> selectAbnormalbehaviorreportList_handteacher(String teacherId) {
        return abnormalbehaviorreportMapper.selectAbnormalbehaviorreportList_handteacher(teacherId);
    }

    @Override
    public List<Abnormalbehaviorreport> selectAbnormalbehaviorreportList_Xiteacher(String teacherId) {
        return abnormalbehaviorreportMapper.selectAbnormalbehaviorreportList_Xiteacher(teacherId);
    }
}
